/**
 * @author ml
 * @create 2017-08-22--16:44
 */
public class HelloProxy implements HelloInterface {

    HelloInterface hello;
    public HelloProxy(HelloInterface hello){
        this.hello=hello;
    }

    @Override
    public void say() {
        System.out.println("Before Invoke say");
        hello.say();

        System.out.println("After Invoke say");

    }

    public static void main(String[] args) {
        HelloProxy helloProxy=new HelloProxy(new Hello());
        helloProxy.say();
    }
}
